package com.orange.quickback.system.service.system.config.impl;

import com.orange.quickback.system.dao.system.config.QBootConfigRepository;
import com.orange.quickback.system.service.system.config.QBootConfigService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class QBootConfigServiceImpl implements QBootConfigService {
    @Resource
    QBootConfigRepository qBootConfigRepository;
    @Override
    public void initQBootConfig() {

    }

    @Override
    public boolean isInit(){
        boolean result = false;
        try {
            result = qBootConfigRepository.count() == 0;
        }catch (Exception e){
            result = false;
        }
        return result;
    }
}
